package cn.com.chengmandian.bike.service;

import cn.com.chengmandian.bike.model.EbRefundInfo;
import cn.com.chengmandian.core.web.pojo.LoginUser;
import cn.com.chengmandian.service.bike.constants.RefundBusinessTypeEnum;
import cn.com.chengmandian.service.bike.constants.RefundChannelEnum;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 电单车运营-退款申请 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-10-08
 */
public interface IEbRefundInfoService extends IService<EbRefundInfo> {

    EbRefundInfo createRefund(Integer areaId,Integer memberId,Integer businessId, Integer payId, BigDecimal feeRatio, BigDecimal money, RefundBusinessTypeEnum businessTypeEnum, RefundChannelEnum channelEnum,String reason, LoginUser loginUser, String data);

    EbRefundInfo createRefund(Integer areaId,Integer memberId,Integer businessId, Integer payId, BigDecimal feeRatio, BigDecimal money, RefundBusinessTypeEnum businessTypeEnum, RefundChannelEnum channelEnum,String reason, LoginUser loginUser);

    /**
     * 退款响应同志
     * @param refundNo
     * @param channelNo
     */
    void refundSuccess(String refundNo, String channelNo);
}
